package com.jzy.stock.util;

/**
 * Created by PC on 2022/6/26.
 */
public enum MateDateShengJiEnum {
    QIYONG(1,"启用"),JINYONG(0,"禁用");
    private String name;
    private Integer id;
    MateDateShengJiEnum(Integer id, String name){
        this.id=id;
        this.name=name;
    }
    public String getName(){

        return  name;
    }
    public Integer getId(){
        return id;
    }
    public static String queryNameById(Integer id){
        for(MateDateShengJiEnum statusShengJiEnum : MateDateShengJiEnum.values()){
            if(id==statusShengJiEnum.getId()){
                return statusShengJiEnum.getName();
            }
        }
        return null;
    }
}
